package com.powernode.ssm.controller;

import com.powernode.ssm.pojo.vo.*;
import com.powernode.ssm.pojo.po.*;
import com.powernode.ssm.utils.*;
import com.powernode.ssm.service.LogInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; 
import org.springframework.web.bind.annotation.RestController;

@Api(
       value ="操作日志管理",
       tags = {"操作日志管理"})

@RestController
@RequestMapping("/log")
public class LogInfoController {

   @Autowired
   private LogInfoService logInfoService;

   @Autowired
   private SpringUtils springUtils;

   @ApiOperation("查询操作日志管理")
   @RequestMapping(value = "/B109821",method = RequestMethod.POST)
   public ResponseUtils queryLogInfo(@Validated @RequestBody QueryLogInfoVo queryLogInfoVo){
       H5UserinfoPo h5UserinfoPo = springUtils.getUserByToken(ThreadLocalContext.getToken());
       return logInfoService.queryLogInfo(queryLogInfoVo);
   }


}
